class BalanceItem
  attr_accessor :user, :balance
  
  def initialize(arg)
    
    arg.each do |value|
      var = value[0]
      value = value[1]
      
      self.send("#{var}=", value)
      
    end
    
  end
  
end
